package com.demo.flight.service.impl;

import com.demo.flight.entity.Ticket;
import com.demo.flight.mapper.TicketMapper;
import com.demo.flight.service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ssy
 * @create 2022-03-24 17:29
 */
@Service
public class TicketServiceImpl implements TicketService {
    @Autowired
    private TicketMapper ticketMapper;
    
    @Override
    public List<Ticket> getAll() {
        return ticketMapper.selectAll();
    }
}
